﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="5.2.aspx.cs" Inherits="第五章._5__2" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <asp:Panel ID="Panel1" runat="server">
                <p>

                    用户名：<asp:TextBox ID="TXTUserName" placeholder="请输入用户名" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ControlToValidate="TXTUserName" ID="UserNameValidator" ForeColor="Red" runat="server" ErrorMessage="请输入用户名"></asp:RequiredFieldValidator>
                </p>
                <p>
                    密码：<asp:TextBox ID="TXTPwd" placeholder="请输入密码" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ControlToValidate="TXTPwd" ID="PasswordValidator" ForeColor="Red" runat="server" ErrorMessage="请输入密码"></asp:RequiredFieldValidator>
                </p>
                <p>
                    姓名：<asp:TextBox ID="TXTName" placeholder="请输入姓名" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ControlToValidate="TXTName" ID="NameValidator" ForeColor="Red" runat="server" ErrorMessage="请输入姓名"></asp:RequiredFieldValidator>
                </p>
                <p>
                    密码：
                    <asp:DropDownList ID="DrDoGender" runat="server">
                        <asp:ListItem>男</asp:ListItem>
                        <asp:ListItem>女</asp:ListItem>
                        <asp:ListItem>保密</asp:ListItem>
                    </asp:DropDownList>
                </p>
                <p>
                    出生日期：
                    <input type="date"/>
                </p>
                <p>
                    电话：<asp:TextBox ID="TXTPhone" placeholder="请输入电话" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ControlToValidate="TXTPhone" ID="PhoneValidator1" ForeColor="Red" runat="server" ErrorMessage="请输入电话号码"></asp:RequiredFieldValidator>
                </p>
                <p>
                    邮箱：<asp:TextBox ID="TXTEmail" placeholder="请输入邮箱" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ControlToValidate="TXTEmail" ID="Emaildator1" runat="server" ForeColor="Red" ErrorMessage="请输入邮箱"></asp:RequiredFieldValidator>
                </p>
                <p>
                    兴趣爱好：<asp:TextBox ID="TXTLike" placeholder="请输入兴趣爱好" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ControlToValidate="TXTLike" ID="LLikeValidator1" runat="server" ForeColor="Red" ErrorMessage="请输入兴趣爱好"></asp:RequiredFieldValidator>
                </p>
                    <asp:Button type="button" class="btn btn-success" ID="BtnSub" runat="server" Text="注册"   />
            </asp:Panel>
        </div>
    </form>
</body>
</html>
